name: docker-build

on:
  pull_request:
    branches: [main, "feature/*"]
    paths:
      - "twake/docker/**"

jobs:
  build-nginx:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - run: cd twake && docker build -t twaketech/twake-nginx -f docker/twake-nginx/Dockerfile .

  build-php:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - run: cd twake && docker build -t twaketech/twake-php -f docker/twake-php/Dockerfile .
